package com.example.student.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.student.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Title: 用户
 * @Package
 * @author lx
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class User extends BaseEntity {

          /**----昵称---**/
          private String name;
          /**----账户---**/
          private String account;
          /**----密码---**/
          private String password;
          /**---旧密码--**/
          @TableField(exist = false)
          private String oldPassword;
          /**----用户类型 1 管理员 2 学生---**/
          @TableField(exist = false)
          private Integer role;
          /**--暂存信息--**/
          @TableField(exist = false)
          private String faculty;
          @TableField(exist = false)
          private String sex;
          @TableField(exist = false)
          private String num;
          @TableField(exist = false)
          private String grades;
          @TableField(exist = false)
          private String major;

}
